# $Id: PKGBUILD 266092 2016-04-23 18:57:09Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=libkolab
pkgver=1.0.2
pkgrel=3
pkgdesc="Advanced Kolab Object Handling Library"
url='http://git.kolab.org/libkolab/'
arch=(i686 x86_64)
license=(GPL)
depends=(libkolabxml akonadi-notes akonadi kcontacts kcalutils)
makedepends=(extra-cmake-modules kdoctools boost python swig)
source=("http://mirror.kolabsys.com/pub/releases/$pkgname-$pkgver.tar.gz"{,.gpg})
md5sums=('312f35920989fd115386ee256fe78ba2'
         '9c829ce9983b3c8cbab9ce833c982924')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
